home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / HENSA / MISC / SHELL.ARC / Shell / h / Array next >
Encoding:
Text File  |  1994-05-28  |  1.1 KB  |  60 lines

  1. #ifndef __Shell_Array_h
  2. #define __Shell_Array_h
  3.  
  4. #ifndef __Shell_h
  5. #include "Shell.Shell.h"
  6. #endif
  7.  
  8.  
  9.  
  10. #define Shell_WIDTH        (8 * Shell_TEXTXSIZE)
  11.     /* Default column width used in array plotting.        */
  12.  
  13.  
  14. typedef struct    {
  15.     void        *data;
  16.     char        format[8];
  17.     int        width;            /* column width    */
  18.     int        forecol, backcol;
  19.     wimp_point    size;
  20.     }
  21.     Shell_GeneralArrayInfo;
  22.  
  23.  
  24. typedef char * (*Shell_GeneralArrayFn) ( int x, int y, Shell_GeneralArrayInfo *arrayinfo);
  25.  
  26.  
  27. Shell_rectblock *Shell_AddGeneralArray(
  28.     Shell_windblock        *wind,
  29.     int            x,
  30.     int            y,
  31.     int            xsize,
  32.     int            ysize,
  33.     int            width,
  34.     const char        *format,
  35.     Shell_GeneralArrayFn    fn,
  36.     const void        *reference,
  37.     int            forecol,
  38.     int            backcol
  39.     );
  40.  
  41.     /* Makes a rectangle in a window, which is a matrix.        */
  42.     /* You supply a function which should return a string for the     */
  43.     /* contents of any x,y location in the matrix.            */
  44.  
  45.  
  46. Shell_rectblock *Shell_Add2DDoubleArray(
  47.     Shell_windblock    *wind,
  48.     int        x,
  49.     int        y,
  50.     int        xsize,
  51.     int        ysize,
  52.     int        forecol,
  53.     int        backcol,
  54.     double        **data
  55.     );
  56.     /* displays the contents of double array 'data' as a table in     */
  57.     /* the window. The top-left value will be data[0][0]        */
  58.  
  59. #endif
  60.